package com.flx.noodle.websocket.dao;

import com.flx.noodle.websocket.entity.ChatRoom;
import com.flx.noodle.websocket.searcher.RoomSearcher;

import java.util.List;

/**
 * Created by fenglixiong on 2017/10/2.
 */
public interface RoomDao {

    ChatRoom getRoomById(int roomId);

    int insertRoom(ChatRoom chatRoom);

    int updateRoom(ChatRoom chatRoom);

    int deleteRoom(int roomId);

    List<ChatRoom> findRoomList(RoomSearcher searcher);

}
